package com.icoo.apigateway.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.icoo.apigateway.user.model.Tuser;
import com.icoo.base.targets.InterceptAnnotation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TuserMapper{

    Tuser login(@Param("userName") String userName, @Param("userPassword") String userPassword, @Param("schema") String schema);

    @InterceptAnnotation
    int selectCountByName(@Param("userName") String userName, @Param("schema") String schema);

    @InterceptAnnotation
    int insert(@Param("tuser") Tuser tuser, @Param("schema") String schema);
}
